package com.example.lottery.service.dto;

import com.example.lottery.service.enums.ActivityEnum;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class ActivityDTO implements Serializable {
    private Long id;

    private Date gmtCreate;

    private Date gmtModified;

    private String activityName;

    private String description;

    private ActivityEnum status;

    public Boolean valid(){
        return this.status.name().equals(ActivityEnum.RUNNING.name());
    }
}
